// 侧边栏路由
export default [
  {
    path: '/dashboard',
    component: '@/pages/Dashboard',
    exact: true,
    meta: {
      title: '控制台',
      icon: 'AppstoreOutlined'
    }
  },
  {
    path: '/user',
    meta: {
      title: '用户管理',
      icon: 'UserOutlined'
    },
    routes: [ // 子路由
      {
        path: '/user/list',
        component: '@/pages/User/list',
        exact: true,
        meta:{title: '用户列表'}
      }
    ]
  }, {
    path: '/departmen',
    meta: {
      title: '部门管理',
      icon: 'WechatOutlined'
    },
    routes: [
      {
        path: '/departmen/list',
        component: '@/pages/Department/list',
        exact: true,
        meta: {title:'部门列表'}
      }, {
        path: '/departmen/add',
        component: '@/pages/Department/add',
        exact: true,
        meta: {title:'添加部门'}
      }
    ]
  }
]
